/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package data.sunriseset;

import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

/**
 *
 * @author bsmith
 */
public class Twilight {

    private String civil;
    private String nautical;
    private String astronomical;

    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    public String getAstronomical() {
        return astronomical;
    }

    public void setAstronomical(String astronomical) {
        this.astronomical = astronomical;
    }

    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    public String getCivil() {
        return civil;
    }

    public void setCivil(String civil) {
        this.civil = civil;
    }

    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    public String getNautical() {
        return nautical;
    }

    public void setNautical(String nautical) {
        this.nautical = nautical;
    }
    
       @Override
    public String toString() {
        return "Twilight ["
                + (civil != null ? "civil=" + civil + ", " : "")
                + (nautical != null ? "nautical=" + nautical + ", " : "")
                + (astronomical != null ? "astronomical=" + astronomical : "") + "]";
    }

}
